package com.itheima.d8_interface2;



public class Test {
    public static void main(String[] args) {
        Drive d = new A();
        d.drive();

        Drive d1 = new B();
        d1.drive();
    }
}
class B implements Drive {

    @Override
    public void drive() {

    }
}


class A extends Student implements Drive,Singer{


    @Override
    public void drive() {

    }

    @Override
    public void sing() {

    }
}

class Student{

}

interface Drive{
    void drive();
}

interface Singer{
    void sing();
}